public final class FixedSecurityFactory<T> extends Object implements SecurityFactory<T>
SecurityFactory
implementation which returns specified object every time.Constructor and Description |
---|
FixedSecurityFactory(T value)
Creates a new factory instance.
|
public FixedSecurityFactory(T value)
value
- the value to be returned on createpublic T create() throws GeneralSecurityException
SecurityFactory
create
in interface SecurityFactory<T>
GeneralSecurityException
- if instantiation fails for some reasonCopyright © 2020 JBoss by Red Hat. All rights reserved.