Package jade.security
Interface Credentials
-
- All Superinterfaces:
Serializable,Serializable
public interface Credentials extends Serializable
This is a collection of Objects that can be used in order to get privileges to perform an action or access a service.- Version:
- $Date$ $Revision$
- Author:
- Giosue Vitaglione - TILAB
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description Credentialsdecode(byte[] enc)Returns a new Credentials from the encoded information.Enumerationelements()Used to retrieve all the contained credentials.byte[]encode()Encode the Credentials into a byte array, so that it can be transported in an ACLMessage.JADEPrincipalgetOwner()Look into the various credentials, if there is one that certify the ownership for this credentials, return the JADEPrincipal of the owner.
-
-
-
Method Detail
-
elements
Enumeration elements()
Used to retrieve all the contained credentials.
-
getOwner
JADEPrincipal getOwner()
Look into the various credentials, if there is one that certify the ownership for this credentials, return the JADEPrincipal of the owner. Otherwise return null.
-
encode
byte[] encode() throws IOExceptionEncode the Credentials into a byte array, so that it can be transported in an ACLMessage. The encoding format is: Credential class | Encoding size | Encoding- Throws:
IOException
-
decode
Credentials decode(byte[] enc) throws IOException
Returns a new Credentials from the encoded information.- Throws:
IOException
-
-