IT. Expert System.

Java Enterprise Edition (EE)

PasswordValidationCallback


javax.security.auth.message.callback
Class PasswordValidationCallback

java.lang.Object
  javax.security.auth.message.callback.PasswordValidationCallback
All Implemented Interfaces:
javax.security.auth.callback.Callback
public class PasswordValidationCallback
extends java.lang.Object
implements javax.security.auth.callback.Callback

Callback for PasswordValidation. This callback may be used by an authentication module to employ the password validation facilities of its containing runtime. This Callback would typically be called by a ServerAuthModule during validateRequest processing.

Version:
%I%, %G%

Constructor Summary
PasswordValidationCallback(javax.security.auth.Subject subject, java.lang.String username, char[] password)
          Create a PasswordValidationCallback.
 
Method Summary
 void clearPassword()
          Clear the password.
 char[] getPassword()
          Get the password.
 boolean getResult()
          Get the authentication result.
 javax.security.auth.Subject getSubject()
          Get the subject.
 java.lang.String getUsername()
          Get the username.
 void setResult(boolean result)
          Set the authentication result.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

PasswordValidationCallback

public PasswordValidationCallback(javax.security.auth.Subject subject,
                                  java.lang.String username,
                                  char[] password)
Create a PasswordValidationCallback.

Parameters:
subject - The subject for authentication
username - The username to authenticate
password - tTe user's password, which may be null.
Method Detail

getSubject

public javax.security.auth.Subject getSubject()
Get the subject.

Returns:
The subject.

getUsername

public java.lang.String getUsername()
Get the username.

Returns:
The username.

getPassword

public char[] getPassword()
Get the password.

Note that this method returns a reference to the password. If a clone of the array is created it is the caller's responsibility to zero out the password information after it is no longer needed.

Returns:
The password, which may be null.

clearPassword

public void clearPassword()
Clear the password.

setResult

public void setResult(boolean result)
Set the authentication result.

Parameters:
result - True if authentication succeeded, false otherwise

getResult

public boolean getResult()
Get the authentication result.

Returns:
True if authentication succeeded, false otherwise


Content

Android Reference

Java basics

Java Enterprise Edition (EE)

Java Standard Edition (SE)

SQL

HTML

PHP

CSS

Java Script

MYSQL

JQUERY

VBS

REGEX

C

C++

C#

Design patterns

RFC (standard status)

RFC (proposed standard status)

RFC (draft standard status)

RFC (informational status)

RFC (experimental status)

RFC (best current practice status)

RFC (historic status)

RFC (unknown status)

IT dictionary

License.
All information of this service is derived from the free sources and is provided solely in the form of quotations. This service provides information and interfaces solely for the familiarization (not ownership) and under the "as is" condition.
Copyright 2016 © ELTASK.COM. All rights reserved.
Site is optimized for mobile devices.
Downloads: 14244 / . Delta: 0.01428 с