MCPcopy Index your code
hub / github.com/apache/tomcat / ManagerBase

Class ManagerBase

java/org/apache/catalina/session/ManagerBase.java:59–1359  ·  view source on GitHub ↗

Minimal implementation of the Manager interface that supports no session persistence or distributable capabilities. This class may be subclassed to create more sophisticated Manager implementations.

Source from the content-addressed store, hash-verified

57 * capabilities. This class may be subclassed to create more sophisticated Manager implementations.
58 */
59public abstract class ManagerBase extends LifecycleMBeanBase implements Manager {
60
61 /**
62 * Default constructor.
63 */
64 public ManagerBase() {
65 }
66
67 private final Log log = LogFactory.getLog(ManagerBase.class); // must not be static
68
69 // ----------------------------------------------------- Instance Variables
70
71 /**
72 * The Context with which this Manager is associated.
73 */
74 private Context context;
75
76
77 /**
78 * The descriptive name of this Manager implementation (for logging).
79 */
80 private static final String name = "ManagerBase";
81
82
83 /**
84 * The Java class name of the secure random number generator class to be used when generating session identifiers.
85 * The random number generator class must be self-seeding and have a zero-argument constructor. If not specified, an
86 * instance of {@link java.security.SecureRandom} will be generated.
87 */
88 protected String secureRandomClass = null;
89
90 /**
91 * The name of the algorithm to use to create instances of {@link java.security.SecureRandom} which are used to
92 * generate session IDs. If no algorithm is specified, SHA1PRNG is used. If SHA1PRNG is not available, the platform
93 * default will be used. To use the platform default (which may be SHA1PRNG), specify the empty string. If an
94 * invalid algorithm and/or provider is specified the SecureRandom instances will be created using the defaults. If
95 * that fails, the SecureRandom instances will be created using platform defaults.
96 */
97 protected String secureRandomAlgorithm = SessionIdGeneratorBase.DEFAULT_SECURE_RANDOM_ALGORITHM;
98
99 /**
100 * The name of the provider to use to create instances of {@link java.security.SecureRandom} which are used to
101 * generate session IDs. If no provider is specified the platform default is used. If an invalid algorithm and/or
102 * provider is specified the SecureRandom instances will be created using the defaults. If that fails, the
103 * SecureRandom instances will be created using platform defaults.
104 */
105 protected String secureRandomProvider = null;
106
107 /**
108 * The session ID generator.
109 */
110 protected SessionIdGenerator sessionIdGenerator = null;
111 /**
112 * The session ID generator class.
113 */
114 protected Class<? extends SessionIdGenerator> sessionIdGeneratorClass = null;
115
116 /**

Callers

nothing calls this directly

Calls 2

getLogMethod · 0.95
getManagerMethod · 0.95

Tested by

no test coverage detected