Package de.cardcontact.opencard.security
Interface SecureChannel
-
- All Known Implementing Classes:
GPSCP02SecureChannel
,IsoSecureChannel
public interface SecureChannel
Interface implementing an APDU wrapping / unwrapping mechanism- Author:
- Andreas Schwier (info@cardcontact.de)
-
-
Field Summary
Fields Modifier and Type Field Description static int
ALL
Combination of CPRO, CENC, RPRO, RENCstatic int
CENC
Usage qualifier: Command APDU is encryptedstatic int
CPRO
Usage qualifier: Command APDU is MAC protectedstatic int
RENC
Usage qualifier: Response APDU is encryptedstatic int
RPRO
Usage qualifier: Response APDU is MAC protected
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description ResponseAPDU
unwrap(ResponseAPDU apduToUnwrap, int usageQualifier)
Unwrap a CommandAPDUCommandAPDU
wrap(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
-
-