SecureRandomParameters
SecureRandomParameters (난수 생성기 매개변수)
다양한 SecureRandom 메서드에서 사용되는 매개변수를 위한 마커(marker) 인터페이스입니다. 일부 SecureRandom 구현은 추가적인 운영 매개변수를 요구할 수 있습니다.
본문
SecureRandomParameters는 SecureRandom의 여러 메서드에서 사용되는 매개변수를 위한 마커 인터페이스입니다. 이 인터페이스를 구현하는 클래스의 객체는 그 매개변수를 지원하는 구현에 전달될 수 있습니다.
SecureRandom.getInstance(String algorithm, SecureRandomParameters params)처럼 이 인터페이스를 인자로 받는 메서드들은 특정 알고리즘의 동작 방식을 세부 제어할 수 있게 해줍니다. 예를 들어 DRBG(Deterministic Random Bit Generator) 기반 SecureRandom은 DrbgParameters를 사용해 보안 강도, 기능(reseed 여부), 예측 저항 등 인스턴스화 매개변수를 지정합니다.
이 인터페이스 자체는 메서드를 정의하지 않는 순수한 마커 인터페이스입니다. 대표적인 구현으로는 java.security.DrbgParameters.Instantiation, DrbgParameters.NextBytes, DrbgParameters.Reseed 등이 있습니다.