commit | author | age
|
7f7e0c
|
1 |
package org.keycloak.protocol.cas.mappers; |
MP |
2 |
|
|
3 |
import org.keycloak.Config; |
|
4 |
import org.keycloak.models.KeycloakSession; |
|
5 |
import org.keycloak.models.KeycloakSessionFactory; |
|
6 |
import org.keycloak.protocol.ProtocolMapper; |
|
7 |
import org.keycloak.protocol.cas.CASLoginProtocol; |
|
8 |
|
513246
|
9 |
public abstract class AbstractCASProtocolMapper implements ProtocolMapper, CASAttributeMapper { |
7f7e0c
|
10 |
public static final String TOKEN_MAPPER_CATEGORY = "Token mapper"; |
MP |
11 |
|
|
12 |
@Override |
|
13 |
public String getProtocol() { |
|
14 |
return CASLoginProtocol.LOGIN_PROTOCOL; |
|
15 |
} |
|
16 |
|
|
17 |
@Override |
|
18 |
public void close() { |
|
19 |
} |
|
20 |
|
|
21 |
@Override |
|
22 |
public final ProtocolMapper create(KeycloakSession session) { |
|
23 |
throw new RuntimeException("UNSUPPORTED METHOD"); |
|
24 |
} |
|
25 |
|
|
26 |
@Override |
|
27 |
public void init(Config.Scope config) { |
|
28 |
} |
|
29 |
|
|
30 |
@Override |
|
31 |
public void postInit(KeycloakSessionFactory factory) { |
|
32 |
} |
|
33 |
|
|
34 |
@Override |
|
35 |
public String getDisplayCategory() { |
|
36 |
return TOKEN_MAPPER_CATEGORY; |
|
37 |
} |
|
38 |
} |