gluu
公開メンバ関数 | 公開変数類 | 全メンバ一覧
BasicExternalAuthenticator.PersonAuthentication クラス
BasicExternalAuthenticator.PersonAuthentication の継承関係図
Inheritance graph
BasicExternalAuthenticator.PersonAuthentication 連携図
Collaboration graph

公開メンバ関数

def __init__ (self, currentTimeMillis)
 
def init (self, configurationAttributes)
 
def destroy (self, configurationAttributes)
 
def getApiVersion (self)
 
def isValidAuthenticationMethod (self, usageType, configurationAttributes)
 
def getAlternativeAuthenticationMethod (self, usageType, configurationAttributes)
 
def authenticate (self, configurationAttributes, requestParameters, step)
 
def prepareForStep (self, configurationAttributes, requestParameters, step)
 
def getExtraParametersForStep (self, configurationAttributes, step)
 
def getCountAuthenticationSteps (self, configurationAttributes)
 
def getPageForStep (self, configurationAttributes, step)
 
def logout (self, configurationAttributes, requestParameters)
 

公開変数類

 currentTimeMillis
 

詳解

構築子と解体子

◆ __init__()

def BasicExternalAuthenticator.PersonAuthentication.__init__ (   self,
  currentTimeMillis 
)
16  def __init__(self, currentTimeMillis):
17  self.currentTimeMillis = currentTimeMillis
18 

関数詳解

◆ authenticate()

def BasicExternalAuthenticator.PersonAuthentication.authenticate (   self,
  configurationAttributes,
  requestParameters,
  step 
)
38  def authenticate(self, configurationAttributes, requestParameters, step):
39  authenticationService = CdiUtil.bean(AuthenticationService)
40 
41  if (step == 1):
42  print "Basic. Authenticate for step 1"
43 
44  identity = CdiUtil.bean(Identity)
45  credentials = identity.getCredentials()
46 
47  user_name = credentials.getUsername()
48  user_password = credentials.getPassword()
49 
50  logged_in = False
51  if (StringHelper.isNotEmptyString(user_name) and StringHelper.isNotEmptyString(user_password)):
52  logged_in = authenticationService.authenticate(user_name, user_password)
53 
54  if (not logged_in):
55  return False
56 
57  return True
58  else:
59  return False
60 

◆ destroy()

def BasicExternalAuthenticator.PersonAuthentication.destroy (   self,
  configurationAttributes 
)
24  def destroy(self, configurationAttributes):
25  print "Basic. Destroy"
26  print "Basic. Destroyed successfully"
27  return True
28 

◆ getAlternativeAuthenticationMethod()

def BasicExternalAuthenticator.PersonAuthentication.getAlternativeAuthenticationMethod (   self,
  usageType,
  configurationAttributes 
)
35  def getAlternativeAuthenticationMethod(self, usageType, configurationAttributes):
36  return None
37 

◆ getApiVersion()

def BasicExternalAuthenticator.PersonAuthentication.getApiVersion (   self)
29  def getApiVersion(self):
30  return 1
31 

◆ getCountAuthenticationSteps()

def BasicExternalAuthenticator.PersonAuthentication.getCountAuthenticationSteps (   self,
  configurationAttributes 
)
71  def getCountAuthenticationSteps(self, configurationAttributes):
72  return 1
73 

◆ getExtraParametersForStep()

def BasicExternalAuthenticator.PersonAuthentication.getExtraParametersForStep (   self,
  configurationAttributes,
  step 
)
68  def getExtraParametersForStep(self, configurationAttributes, step):
69  return None
70 

◆ getPageForStep()

def BasicExternalAuthenticator.PersonAuthentication.getPageForStep (   self,
  configurationAttributes,
  step 
)
74  def getPageForStep(self, configurationAttributes, step):
75  return ""
76 

◆ init()

def BasicExternalAuthenticator.PersonAuthentication.init (   self,
  configurationAttributes 
)
19  def init(self, configurationAttributes):
20  print "Basic. Initialization"
21  print "Basic. Initialized successfully"
22  return True
23 

◆ isValidAuthenticationMethod()

def BasicExternalAuthenticator.PersonAuthentication.isValidAuthenticationMethod (   self,
  usageType,
  configurationAttributes 
)
32  def isValidAuthenticationMethod(self, usageType, configurationAttributes):
33  return True
34 

◆ logout()

def BasicExternalAuthenticator.PersonAuthentication.logout (   self,
  configurationAttributes,
  requestParameters 
)
77  def logout(self, configurationAttributes, requestParameters):
78  return True
79 

◆ prepareForStep()

def BasicExternalAuthenticator.PersonAuthentication.prepareForStep (   self,
  configurationAttributes,
  requestParameters,
  step 
)
61  def prepareForStep(self, configurationAttributes, requestParameters, step):
62  if (step == 1):
63  print "Basic. Prepare for Step 1"
64  return True
65  else:
66  return False
67 

メンバ詳解

◆ currentTimeMillis

BasicExternalAuthenticator.PersonAuthentication.currentTimeMillis

このクラス詳解は次のファイルから抽出されました: