Package de.cardcontact.opencard.security
Class IsoSecureChannelCredential
- java.lang.Object
-
- de.cardcontact.opencard.security.IsoSecureChannelCredential
-
- All Implemented Interfaces:
SecureChannelCredential
,Credential
public class IsoSecureChannelCredential extends java.lang.Object implements SecureChannelCredential
Class to encode a secure channel credential, which combines a secure channel object with a usage qualifier. Secure channel credentials can be added to an IsoCredentialStore, linking them with a a file object on the card and a file access mode.- Author:
- Andreas Schwier (info@cardcontact.de)
-
-
Field Summary
Fields Modifier and Type Field Description protected SecureChannel
sc
protected int
usageQualifier
-
Constructor Summary
Constructors Constructor Description IsoSecureChannelCredential(int usageQualifier, SecureChannel sc)
Create a secure channel credential object
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description SecureChannel
getSecureChannel()
Getter for secure channel objectint
getUsageQualifier()
Getter for usageQualifier
-
-
-
Field Detail
-
sc
protected SecureChannel sc
-
usageQualifier
protected int usageQualifier
-
-
Constructor Detail
-
IsoSecureChannelCredential
public IsoSecureChannelCredential(int usageQualifier, SecureChannel sc)
Create a secure channel credential object- Parameters:
usageQualifier
- Usage qualifier for use of secure channel. Must be a bitmap combination of SecureChannel.CPRO, SecureChannel.CENC, SecureChannel.RPRO and SecureChannel.RENC.sc
- Secure channel object
-
-
Method Detail
-
getSecureChannel
public SecureChannel getSecureChannel()
Getter for secure channel object- Specified by:
getSecureChannel
in interfaceSecureChannelCredential
- Returns:
- secure channel object
-
getUsageQualifier
public int getUsageQualifier()
Getter for usageQualifier- Specified by:
getUsageQualifier
in interfaceSecureChannelCredential
- Returns:
- usage qualifier
-
-