01: /* Copyright 2001 The JA-SIG Collaborative. All rights reserved.
02: * See license distributed with this file and
03: * available online at http://www.uportal.org/license.html
04: */
05:
06: package org.jasig.portal.security;
07:
08: import java.io.Serializable;
09:
10: /**
11: * <p>Our OpaqueCredentials interface stores password or passphrase information
12: * for authentication. The same structure stores information that can
13: * potentially be used post-authentication to keep Kerberos TGT's or other
14: * useful security context authenticators.</p>
15: *
16: * @author Andrew Newman, newman@yale.edu
17: * @version $Revision: 34783 $
18: */
19: public interface IOpaqueCredentials extends Serializable {
20:
21: /**
22: * Set the credentials value.
23: *
24: * @param credentials A string of bytes that represents an authenticator.
25: */
26: public void setCredentials(byte[] credentials);
27:
28: /**
29: * Set the credentials value.
30: *
31: * @param credentials A Java String that contains an authenticator such as
32: * a passphrase that is typically represented by a locale-specific text
33: * string.
34: */
35: public void setCredentials(String credentials);
36: }
|