public class CertKeyCredential extends Object implements SecurityObjectWrapper<X509Credential>, Storable, CredentialWrapper
Modifier and Type | Field and Description |
---|---|
protected org.springframework.core.io.Resource |
certFile |
protected org.springframework.core.io.Resource |
keyFile |
Constructor and Description |
---|
CertKeyCredential(org.springframework.core.io.Resource certResource,
org.springframework.core.io.Resource keyResource) |
CertKeyCredential(org.springframework.core.io.Resource certResource,
org.springframework.core.io.Resource keyResource,
X509Credential credential) |
Modifier and Type | Method and Description |
---|---|
protected X509Credential |
createObject(org.springframework.core.io.Resource certSource,
org.springframework.core.io.Resource keySource) |
String |
getAlias() |
org.springframework.core.io.Resource |
getCertificateFile() |
X509Credential |
getCredential() |
org.springframework.core.io.Resource |
getKeyFile() |
X509Credential |
getSecurityObject() |
boolean |
hasChanged() |
protected void |
init(org.springframework.core.io.Resource initCertResource,
org.springframework.core.io.Resource initKeyResource) |
protected void |
init(org.springframework.core.io.Resource initCertFile,
org.springframework.core.io.Resource keyResource,
X509Credential initCredential) |
void |
refresh() |
void |
store() |
protected org.springframework.core.io.Resource certFile
protected org.springframework.core.io.Resource keyFile
public CertKeyCredential(org.springframework.core.io.Resource certResource, org.springframework.core.io.Resource keyResource) throws ResourceStoreException
ResourceStoreException
public CertKeyCredential(org.springframework.core.io.Resource certResource, org.springframework.core.io.Resource keyResource, X509Credential credential) throws ResourceStoreException
ResourceStoreException
protected void init(org.springframework.core.io.Resource initCertResource, org.springframework.core.io.Resource initKeyResource) throws ResourceStoreException
ResourceStoreException
protected void init(org.springframework.core.io.Resource initCertFile, org.springframework.core.io.Resource keyResource, X509Credential initCredential) throws ResourceStoreException
ResourceStoreException
public void refresh() throws ResourceStoreException
refresh
in interface SecurityObjectWrapper<X509Credential>
ResourceStoreException
public org.springframework.core.io.Resource getCertificateFile()
public org.springframework.core.io.Resource getKeyFile()
protected X509Credential createObject(org.springframework.core.io.Resource certSource, org.springframework.core.io.Resource keySource) throws ResourceStoreException
ResourceStoreException
public X509Credential getSecurityObject() throws ResourceStoreException
getSecurityObject
in interface SecurityObjectWrapper<X509Credential>
ResourceStoreException
public boolean hasChanged()
hasChanged
in interface SecurityObjectWrapper<X509Credential>
public X509Credential getCredential() throws ResourceStoreException
getCredential
in interface CredentialWrapper
ResourceStoreException
public void store() throws ResourceStoreException
store
in interface Storable
ResourceStoreException
public String getAlias()
getAlias
in interface SecurityObjectWrapper<X509Credential>
Copyright © 2012. All Rights Reserved.