BPSSsoSecurityConfig class

Security configuration for the BPS SSO SDK

Constructors

BPSSsoSecurityConfig({bool enableCertificatePinning = true, bool enableJwtSignatureVerification = true, bool enableTokenEncryption = true, bool enableRuntimeSecurityChecks = true, bool enableMemoryProtection = true, Duration tokenTimeoutDuration = const Duration(minutes: 30), Duration maxSessionDuration = const Duration(hours: 8), bool enableAuditLogging = true, AuditLogLevel auditLogLevel = AuditLogLevel.info, List<String> pinnedCertificates = const [], List<String> allowedHosts = const ['sso.bps.go.id'], bool enableDebugDetection = true, bool enableRootDetection = true})
const

Properties

allowedHosts → List<String>
List of allowed hostnames for SSO communication
final
auditLogLevel → AuditLogLevel
Level of audit logging
final
enableAuditLogging → bool
Whether to enable audit logging
final
enableCertificatePinning → bool
Whether to enable SSL certificate pinning
final
enableDebugDetection → bool
Whether to detect debugging attempts
final
enableJwtSignatureVerification → bool
Whether to verify JWT signatures
final
enableMemoryProtection → bool
Whether to enable memory protection mechanisms
final
enableRootDetection → bool
Whether to detect rooted/jailbroken devices
final
enableRuntimeSecurityChecks → bool
Whether to perform runtime security checks
final
enableTokenEncryption → bool
Whether to encrypt tokens in storage
final
hashCode → int
The hash code for this object.
no setterinherited
maxSessionDuration → Duration
Maximum session duration before re-authentication required
final
pinnedCertificates → List<String>
List of pinned certificate fingerprints
final
runtimeType → Type
A representation of the runtime type of the object.
no setterinherited
tokenTimeoutDuration → Duration
Timeout duration for individual requests
final

Methods

noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toString() → String
A string representation of this object.
inherited

Operators

operator ==(Object other) → bool
The equality operator.
inherited

Constants

development → const BPSSsoSecurityConfig
iso27001 → const BPSSsoSecurityConfig
ISO 27001 compliant security configuration