public class CryptoMapper extends Object implements IRequestMapper
| Modifier and Type | Class and Description |
|---|---|
static class |
CryptoMapper.HashedSegmentGenerator
A generator of hashed segments.
|
| Constructor and Description |
|---|
CryptoMapper(IRequestMapper wrappedMapper,
Application application)
Encrypt with
SecuritySettings.getCryptFactory(). |
CryptoMapper(IRequestMapper wrappedMapper,
IProvider<ICrypt> cryptProvider)
Construct.
|
| Modifier and Type | Method and Description |
|---|---|
protected Url |
decryptUrl(Request request,
Url encryptedUrl) |
protected Url |
encryptUrl(Url url) |
int |
getCompatibilityScore(Request request) |
protected ICrypt |
getCrypt() |
protected IRequestMapper |
getWrappedMapper() |
Url |
mapHandler(IRequestHandler requestHandler) |
IRequestHandler |
mapRequest(Request request) |
public CryptoMapper(IRequestMapper wrappedMapper, Application application)
SecuritySettings.getCryptFactory().
Note: Encryption is done with SecuritySettings.DEFAULT_ENCRYPTION_KEY
if you haven't configured an alternative ICryptFactory. Alternatively use
CryptoMapper(IRequestMapper, IProvider) with a specific ICrypt.
wrappedMapper - the non-crypted request mapperapplication - the current applicationpublic CryptoMapper(IRequestMapper wrappedMapper, IProvider<ICrypt> cryptProvider)
wrappedMapper - the non-crypted request mappercryptProvider - the custom crypt providerpublic int getCompatibilityScore(Request request)
getCompatibilityScore in interface IRequestMapperpublic Url mapHandler(IRequestHandler requestHandler)
mapHandler in interface IRequestMapperpublic IRequestHandler mapRequest(Request request)
mapRequest in interface IRequestMapperprotected final ICrypt getCrypt()
protected final IRequestMapper getWrappedMapper()
Copyright © 2006–2014 Apache Software Foundation. All rights reserved.