anon-identity
Version:
Decentralized identity framework with DIDs, Verifiable Credentials, and privacy-preserving selective disclosure
87 lines • 2.45 kB
TypeScript
/**
* MCP Security Module Exports
*
* Consolidates all security components for the MCP system
*/
export { CredentialManager } from './credential-manager';
export type { Credential, CredentialValidationResult, CredentialRotationResult } from './credential-manager';
export { AuthManager } from './auth-manager';
export type { AuthToken, AuthenticationResult, AuthorizationResult } from './auth-manager';
export { AuditLogger, AuditEventType } from './audit-logger';
export type { AuditLogEntry, AuditQueryOptions, AuditStatistics, ComplianceReport } from './audit-logger';
export { RateLimiterManager, RateLimitWindow } from './rate-limiter';
export type { RateLimitRule, Quota, RateLimitResult, QuotaStatus } from './rate-limiter';
/**
* Security configuration builder
*/
export declare class SecurityConfigBuilder {
private credentialConfig;
private authConfig;
private authzConfig;
private auditConfig;
/**
* Enable credential encryption
*/
withEncryption(enabled?: boolean): this;
/**
* Enable credential rotation
*/
withRotation(interval: number, retentionCount?: number): this;
/**
* Set authentication method
*/
withAuthentication(method: string, tokenExpiration?: number): this;
/**
* Enable MFA
*/
withMFA(enabled?: boolean): this;
/**
* Enable RBAC
*/
withRBAC(enabled?: boolean): this;
/**
* Enable ABAC
*/
withABAC(enabled?: boolean): this;
/**
* Set default deny policy
*/
withDefaultDeny(enabled?: boolean): this;
/**
* Enable audit logging
*/
withAuditLogging(config: {
logAllRequests?: boolean;
logResponses?: boolean;
logSensitiveData?: boolean;
retentionPeriod?: number;
}): this;
/**
* Build security configuration
*/
build(): {
credentialConfig: any;
authConfig: any;
authzConfig: any;
auditConfig: any;
};
}
/**
* Create a pre-configured security setup for development
*/
export declare function createDevelopmentSecurity(): {
credentialConfig: any;
authConfig: any;
authzConfig: any;
auditConfig: any;
};
/**
* Create a pre-configured security setup for production
*/
export declare function createProductionSecurity(): {
credentialConfig: any;
authConfig: any;
authzConfig: any;
auditConfig: any;
};
//# sourceMappingURL=index.d.ts.map