Package com.amazonaws.kinesisvideo.auth
Class DefaultAuthCallbacks
- java.lang.Object
-
- com.amazonaws.kinesisvideo.auth.DefaultAuthCallbacks
-
- All Implemented Interfaces:
AuthCallbacks
public class DefaultAuthCallbacks extends Object implements AuthCallbacks
Default AuthCallbacks implementation based on the credentials provider
-
-
Field Summary
Fields Modifier and Type Field Description static longCREDENTIALS_NEVER_EXPIREA sentinel value indicating the credentials never expire
-
Constructor Summary
Constructors Constructor Description DefaultAuthCallbacks(KinesisVideoCredentialsProvider credentialsProvider, ScheduledExecutorService executor, org.apache.logging.log4j.Logger log)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description AuthInfogetDeviceCertificate()Returns the device certificate.StringgetDeviceFingerprint()Returns the device fingerprint uniquely identifying the device.AuthInfogetSecurityToken()Returns the device security token.
-
-
-
Field Detail
-
CREDENTIALS_NEVER_EXPIRE
public static final long CREDENTIALS_NEVER_EXPIRE
A sentinel value indicating the credentials never expire- See Also:
- Constant Field Values
-
-
Constructor Detail
-
DefaultAuthCallbacks
public DefaultAuthCallbacks(@Nonnull KinesisVideoCredentialsProvider credentialsProvider, @Nonnull ScheduledExecutorService executor, @Nonnull org.apache.logging.log4j.Logger log)
-
-
Method Detail
-
getDeviceCertificate
@Nullable public AuthInfo getDeviceCertificate()
Description copied from interface:AuthCallbacksReturns the device certificate. Null if not integrated through certificates.- Specified by:
getDeviceCertificatein interfaceAuthCallbacks- Returns:
- Device certificate bits
-
getSecurityToken
@Nullable public AuthInfo getSecurityToken()
Description copied from interface:AuthCallbacksReturns the device security token. Null if not integrated through security tokens.- Specified by:
getSecurityTokenin interfaceAuthCallbacks- Returns:
- Device security token
-
getDeviceFingerprint
@Nullable public String getDeviceFingerprint()
Description copied from interface:AuthCallbacksReturns the device fingerprint uniquely identifying the device. Null if no provisioning is allowed for the device in which case the device should be integrated with either the Certificate model or with the Security token model.- Specified by:
getDeviceFingerprintin interfaceAuthCallbacks- Returns:
- Device unique fingerprint.
-
-