mirror of
https://github.com/honeymoose/OpenSearch.git
synced 2025-03-24 17:09:48 +00:00
SecuredString encapsulates handling of passwords and clearing them when done. This change includes changing everywhere passwords are used. After authentication the authentication service will clear the token - which will clear the password. This avoids using any passwords in String objects. This also adds commentary to BCrypt to show how it changed from the original external resource. It moves utility methods to CharArrays. Original commit: elastic/x-pack-elasticsearch@d0ffbae5c8
19 lines
417 B
Java
19 lines
417 B
Java
/*
|
|
* Copyright Elasticsearch B.V. and/or licensed to Elasticsearch B.V. under one
|
|
* or more contributor license agreements. Licensed under the Elastic License;
|
|
* you may not use this file except in compliance with the Elastic License.
|
|
*/
|
|
package org.elasticsearch.shield.authc;
|
|
|
|
/**
|
|
*
|
|
*/
|
|
public interface AuthenticationToken {
|
|
|
|
String principal();
|
|
|
|
Object credentials();
|
|
|
|
void clearCredentials();
|
|
}
|