Package de.cardcontact.opencard.security
Interface SecureChannel
-
- All Known Implementing Classes:
GPSCP02SecureChannel,IsoSecureChannel
public interface SecureChannelInterface implementing an APDU wrapping / unwrapping mechanism- Author:
- Andreas Schwier (info@cardcontact.de)
-
-
Field Summary
Fields Modifier and Type Field Description static intALLCombination of CPRO, CENC, RPRO, RENCstatic intCENCUsage qualifier: Command APDU is encryptedstatic intCPROUsage qualifier: Command APDU is MAC protectedstatic intRENCUsage qualifier: Response APDU is encryptedstatic intRPROUsage qualifier: Response APDU is MAC protected
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description ResponseAPDUunwrap(ResponseAPDU apduToUnwrap, int usageQualifier)Unwrap a CommandAPDUCommandAPDUwrap(CommandAPDU apduToWrap, int usageQualifier)Wrap a CommandAPDU
-
-
-
Field Detail
-
CPRO
static final int CPRO
Usage qualifier: Command APDU is MAC protected- See Also:
- Constant Field Values
-
CENC
static final int CENC
Usage qualifier: Command APDU is encrypted- See Also:
- Constant Field Values
-
RPRO
static final int RPRO
Usage qualifier: Response APDU is MAC protected- See Also:
- Constant Field Values
-
RENC
static final int RENC
Usage qualifier: Response APDU is encrypted- See Also:
- Constant Field Values
-
ALL
static final int ALL
Combination of CPRO, CENC, RPRO, RENC- See Also:
- Constant Field Values
-
-
Method Detail
-
wrap
CommandAPDU wrap(CommandAPDU apduToWrap, int usageQualifier)
Wrap a CommandAPDU- Parameters:
apduToWrap- Command APDU to be wrappedusageQualifier- Qualifier to control the transformation process- Returns:
- Wrapped APDU
-
unwrap
ResponseAPDU unwrap(ResponseAPDU apduToUnwrap, int usageQualifier)
Unwrap a CommandAPDU- Parameters:
apduToUnwrap- Response APDU to be unwrappedusageQualifier- Qualifier to control the transformation process- Returns:
- Wrapped APDU
-
-