# 지운다고 약속하는 쪽 — 핸들 7:/** Versioned operation-scoped mutable secret copy that wipes itself on close. */ 63: Arrays.fill(bytes, (byte) 0); 66: Arrays.fill(characters, '\0'); 그 핸들을 받는 인터페이스의 구현 — 이름 있는 것과 익명인 것 test · NotificationReconciliationAdapterTest.java:49: new NotificationProviderAttemptClient() { test · NotificationReconciliationAdapterTest.java:164: implements NotificationProviderAttemptClient { test · NotificationProviderAttemptContractTest.java:56: new NotificationProviderAttemptClient() { test · NotificationProviderAttemptContractTest.java:100: new NotificationProviderAttemptClient() { test · NotificationProviderAttemptContractTest.java:121: new NotificationProviderAttemptClient() { test · NotificationProviderAttemptContractTest.java:163: new NotificationProviderAttemptClient() { test · InlineNotificationAttemptAdapterTest.java:19: new NotificationProviderAttemptClient() { # 서명 자리에 실제로 오는 쪽 — 자격증명 관리자 145: public byte[] materialFor(ProviderProfileId profileId, long generation) { 146- Objects.requireNonNull(profileId, "profileId"); 147- CredentialGeneration active = current.get(profileId); 148- if (active == null) { 20: material = material.clone(); 25: return material.clone(); # 그 사본을 서명 자리로 넘기는 자리 SesNotificationProviderAdapter.java:136: credentials.materialFor( TwilioSmsProviderAdapter.java:98: credentials.materialFor( TwilioReconciliationCapability.java:125: credentials.materialFor( # 그 사본을 문자열로 올리는 자리 AwsSignatureV4Signer.java:118: ("AWS4" + new String(secretAccessKey, StandardCharsets.UTF_8)) TwilioRequestMapper.java:44: (properties.accountSid() + ":" + new String(authToken, StandardCharsets.UTF_8)) TwilioReconciliationCapability.java-125- credentials.materialFor( # 그 문자열이 다시 키 명세로 들어가는 자리 117: byte[] key = 129: mac.init(new SecretKeySpec(key, "HmacSHA256")); # 복제를 받는 다른 길 — 비밀 자재 제공자 직접 조회 (수신자 이름이 아니라 메서드로 찾는다) AesGcmNotificationPayloadProtection.java:80: SecretKeyMaterial key = secrets.activeKey(SecretPurpose.PAYLOAD_ENCRYPTION); AesGcmNotificationPayloadProtection.java:133: SecretKeyMaterial key = secrets.keyById(keyId); AesGcmContactPointProtector.java:67: SecretKeyMaterial lookup = keys.activeKey(SecretPurpose.CONTACT_LOOKUP_HMAC); AesGcmContactPointProtector.java:89: SecretKeyMaterial key = keys.keyById(protectedValue.keyId()); AesGcmContactPointProtector.java:103: keys.activeKey(SecretPurpose.CONTACT_LOOKUP_HMAC), value.type(), value.normalized()); AesGcmContactPointProtector.java:107: SecretKeyMaterial encryption = keys.activeKey(SecretPurpose.CONTACT_ENCRYPTION); AesGcmCallbackPayloadProtection.java:138: secrets.activeKey(SecretPurpose.CALLBACK_FINGERPRINT_HMAC).material(), "HmacSHA256")); HmacProviderRequestIdHasher.java:44: secrets.activeKey(SecretPurpose.PROVIDER_REQUEST_LOOKUP_HMAC).material(), ProviderCredentialManager.java:198: SecretKeyMaterial key = secrets.keyById(generation.keyId()); ProviderCredentialManager.java:223: SecretKeyMaterial key = secrets.keyById(generation.keyId()); VapidKeyRegistry.java:67: SecretKeyMaterial key = secrets.keyById(subscription.vapidKeyId()); TwilioCallbackAdapter.java:78: var key = secrets.keyById(properties.callbackSigningKeyRef()); WebhookNotificationProviderAdapter.java:220: var key = secrets.keyById(subscription.signingKeyRef().orElseThrow()); 그중 자격증명 관리자 자신의 줄 : 2 # 제공자 자격증명 목적을 푸는 자리 ProviderCredentialManager.java:199: if (key.purpose() != SecretPurpose.PROVIDER_CREDENTIAL) { ProviderCredentialManager.java:224: if (key.purpose() != SecretPurpose.PROVIDER_CREDENTIAL) { 그 목적을 검사 없이 바로 조회하는 자리 : (일치 0) # 서명 검증기가 쓰는 것은 다른 목적의 비밀이다 73: * other, and a profile could not be rotated on its own. {@code callbackSigningKeyRef} is the 78: var key = secrets.keyById(properties.callbackSigningKeyRef()); 79: if (key.purpose() != SecretPurpose.CALLBACK_SIGNING) { 13: CALLBACK_SIGNING, 14: PROVIDER_CREDENTIAL,